
package com.pkk.geer.rose.service.professional;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.pkk.geer.rose.service.datasource.RoseSpeedAppDbService;
import java.util.List;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pkk.geer.rose.entity.RoseSpeedAppEntity;
import com.pkk.geer.rose.mybatis.RoseSpeedAppMapper;

/**
 * @author peikunkun<br>
 * @version V1.0<br>
 * @Title: 极速数据应用信息<br>
 * @Description: <><br>
 * @date 2019/11/8 0008 下午 5:45<br>
 * @URL:[]
 */
@Slf4j
@Service
public class RoseSpeedAppService {

  @Resource
  private RoseSpeedAppDbService roseSpeedAppDbService;

  /**
   * @Description: 根据标签进行查询
   * @Param: [appFlag]
   * @return: java.util.List<com.pkk.geer.rose.entity.RoseSpeedAppEntity>
   * @Author: peikunkun
   * @Date: 2019/11/8 0008 下午 5:54
   */
  public List<RoseSpeedAppEntity> getRoseSpeedAppByAppFlag(String appFlag) {
    QueryWrapper<RoseSpeedAppEntity> queryWrapper = new QueryWrapper();
    queryWrapper.eq("app_flag", appFlag);
    queryWrapper.eq("disable", 1);
    queryWrapper.orderByDesc("create_time");
    return roseSpeedAppDbService.list(queryWrapper);
  }


}
